﻿using DigitalHealth.PACS.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DigitalHealth.PACS.ChatWebSocket.Services
{
    public interface IChatGroupMessageRepository
    {
        void Create(ChatGroupMessage chatMessage);
        void Update(ChatGroupMessage chatMessage);
        void Delete(ChatGroupMessage chatMessage);
        IEnumerable<ChatGroupMessage> GetChatMessages();
        ChatGroupMessage GetChatMessageById(string id);
        IEnumerable<ChatGroupMessage> GetChatMessagesByReceiverOrg(Organization receiverOrg);
        IEnumerable<ChatGroupMessage> GetNotReadChatMessagesByReceiverOrg(Organization receiverOrg);
        bool ChatMessageExists(string id);
    }
}
